<template>
   <div class="app">
    <Child></Child>
   </div>
</template>

<script lang='ts' setup>
  import Child from '@/Child.vue'
  import {ref,provide} from 'vue'
  let message=ref<string>("我是你爷爷")
  provide('pkey',message)
</script>

<style lang='scss' scoped>
 .app{
   width: 500px;
   height: 500px;
   background-color: orange;
 }
</style>